package com.swf.common.xml;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
public class sho {
 public static void main(String[] args)throws Exception {
  ServerSocket ser=new ServerSocket(8800);
  Socket soc=ser.accept();
  InputStream is=soc.getInputStream();
  BufferedReader bf=new BufferedReader(new InputStreamReader(is)); 
  String a=bf.readLine();
  System.out.println(a);
  while(a!=null){
   a=bf.readLine();
   System.out.println("我是服务器,信息为:"+a);
  }
  bf.close();
  is.close();
  soc.close();
  ser.close();
 }
}